]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Allow animations to start if the overview is closing
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Wed, 16 Sep 2020 07:03:47 +0000 (15:03 +0800)
committerDaniel van Vugt <daniel.van.vugt@canonical.com>
Thu, 19 Aug 2021 07:44:34 +0000 (15:44 +0800)
So the `WindowManager._mapWindow` animation doesn't get skipped if the
overview is visible but closing.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1440>

js/ui/windowManager.js

index d01bac19c7574ed42dd2a61c73f9b6429d2c29ff..2ded68236222f134dd287120f67d61b057e66e0e 100644 (file)
@@ -1118,7 +1118,8 @@ var WindowManager = class {
     }
 
     _shouldAnimate() {
-        return !(Main.overview.visible || this._workspaceAnimation.gestureActive);
+        const overviewOpen = Main.overview.visible && !Main.overview.closing;
+        return !(overviewOpen || this._workspaceAnimation.gestureActive);
     }
 
     _shouldAnimateActor(actor, types) {